#!/bin/bash
# ip=192.168.3.26

# read -p "Please input a ip : " ip

ping -c1 $1 &>/dev/null
if [ $? -eq 0 ];then
	echo "$1 is up."
else
	echo "$1 is down."
fi
